<template>
    <el-select v-model="formType" placeholder="请选择类型">
        <el-option
            v-for="item in parentOptions"
            :key="item.type"
            :label="item.name"
            :value="item.type"
        >
        </el-option>
        <el-option label="选择全部" value="">
        </el-option>
    </el-select>
</template>

<script>
    export default {
        props: [
            "parentOptions"
        ],
        data(){
            return {
                radio: "3",
                formType: "",
            }
        },
        watch: {
            formType(newVal){
                this.$emit('select',newVal);
            }
        },
    }
</script>
